import 'package:cbec_app/generated/json/base/json_field.dart';
import 'package:cbec_app/generated/json/classify_data_entity.g.dart';
import 'dart:convert';
export 'package:cbec_app/generated/json/classify_data_entity.g.dart';

@JsonSerializable()
class ClassifyDataEntity {
  bool isSelected = false;
  double? id;
  String? className = '';
  String? image = '';
  ClassifyDataApiClassAdvGetListVO? apiClassAdvGetListVO;
  double? sid;
  List<ClassifyDataChildren>? children = [];

  ClassifyDataEntity();

  factory ClassifyDataEntity.fromJson(Map<String, dynamic> json) => $ClassifyDataEntityFromJson(json);

  Map<String, dynamic> toJson() => $ClassifyDataEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class ClassifyDataApiClassAdvGetListVO {
  String? fileUrl = '';
  double? jumpType;
  ClassifyDataApiClassAdvGetListVOContent? content;

  ClassifyDataApiClassAdvGetListVO();

  factory ClassifyDataApiClassAdvGetListVO.fromJson(Map<String, dynamic> json) => $ClassifyDataApiClassAdvGetListVOFromJson(json);

  Map<String, dynamic> toJson() => $ClassifyDataApiClassAdvGetListVOToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class ClassifyDataApiClassAdvGetListVOContent {
  @JSONField(name: "link_type")
  double? linkType;
  @JSONField(name: "link_id")
  double? linkId;
  @JSONField(name: "link_title")
  String? linkTitle = '';

  ClassifyDataApiClassAdvGetListVOContent();

  factory ClassifyDataApiClassAdvGetListVOContent.fromJson(Map<String, dynamic> json) => $ClassifyDataApiClassAdvGetListVOContentFromJson(json);

  Map<String, dynamic> toJson() => $ClassifyDataApiClassAdvGetListVOContentToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class ClassifyDataChildren {
  String? id;
  String? className = '';
  String? image = '';
  double? sid;
  List<ClassifyDataChildrenChildren>? children = [];

  ClassifyDataChildren();

  factory ClassifyDataChildren.fromJson(Map<String, dynamic> json) => $ClassifyDataChildrenFromJson(json);

  Map<String, dynamic> toJson() => $ClassifyDataChildrenToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class ClassifyDataChildrenChildren {
  String? id;
  String? className = '';
  String? image = '';
  double? sid;

  ClassifyDataChildrenChildren();

  factory ClassifyDataChildrenChildren.fromJson(Map<String, dynamic> json) => $ClassifyDataChildrenChildrenFromJson(json);

  Map<String, dynamic> toJson() => $ClassifyDataChildrenChildrenToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
